package cn.imnaer.service.persistence.model;

import java.io.Serializable;
import java.util.Date;

/**
 * 好友关系
 * Created by Administrator on 2015/5/14.
 */
public class FriendRelation implements Serializable {
    private String friendRelationId;
    private String userId;
    private String friendUserId;
    /**
     * 备注
     */
    private String note;
	private Boolean isStar = false;
    private Long createTime;
    /**
     * 是否相互是好友
     * <P>
     *     两种逻辑
     *     1. 有一方不是好友
     *     2. 有一方拉黑了好友
     * </P>
     */
	private Boolean eachOther = false;

    private Boolean removed = false;

    public String getFriendRelationId() {
        return friendRelationId;
    }
    public void setFriendRelationId(String friendRelationId) {
        this.friendRelationId = friendRelationId;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getFriendUserId() {
        return friendUserId;
    }

    public void setFriendUserId(String friendUserId) {
        this.friendUserId = friendUserId;
    }

    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note;
    }



    public Long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Long createTime) {
        this.createTime = createTime;
    }

    public Boolean getIsStar() {
		return isStar;
	}

	public void setIsStar(Boolean isStar) {
		this.isStar = isStar;
	}
    public Boolean getEachOther() {
		return eachOther;
	}
	public void setEachOther(Boolean eachOther) {
		this.eachOther = eachOther;
	}

    public Boolean getRemoved() {
        return removed;
    }

    public void setRemoved(Boolean removed) {
        this.removed = removed;
    }

    public FriendRelation() {}

    public FriendRelation(String selfUserId, String targetUserId) {
        this.userId = selfUserId;
        this.friendUserId = targetUserId;
        this.createTime = new Date().getTime();
    }
}
